package com.gxa.eurekribbon;

import com.gxa.eurekribbon.config.RibbonConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

@SpringBootApplication
@EnableEurekaClient
@EnableDiscoveryClient   // 作用: 发现业务模块
@RibbonClient(name="class-provider",configuration = RibbonConfiguration.class)
public class EurekaRibbonApp {

    public static void main(String[] args) {
        SpringApplication.run(EurekaRibbonApp.class, args);
    }
}